# Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( grid , n ) :
    incl = max ( grid [ 0 ] [ 0 ] , grid [ 1 ] [ 0 ] )
    excl = 0
    for i in range ( 1 , n ) :
        excl_new = max ( excl , incl )
        incl = excl + max ( grid [ 0 ] [ i ] , grid [ 1 ] [ i ] )
        excl = excl_new
    return max ( excl , incl )


#TOFILL

if __name__ == '__main__':
    param = [
    ([[6, 10, 23, 28, 35, 55, 91], [11, 14, 15, 54, 55, 62, 81], [18, 26, 40, 43, 47, 89, 93], [3, 11, 19, 53, 65, 82, 92], [14, 32, 43, 44, 51, 77, 83], [6, 6, 30, 30, 33, 73, 74], [2, 2, 10, 61, 70, 81, 84]],3,),
    ([[-28, -20, -60, 92, 12, -66, 20, -22, 72, -90, 30, 90, -64, 38, 24, 78, 42, -72, -86, 88, -66, -74, -52, 26, -76, -64, -54, -56, -50, -12, -50, -58, -42, 20], [-84, -90, 32, 4, -54, -96, 72, 70, -2, 62, -20, 22, -38, 78, -86, -50, 64, 92, 16, 22, 44, -72, -88, -54, 58, 72, -28, 34, -10, -12, -82, 38, -76, 86], [30, 94, 12, -58, 24, -58, 82, -96, -84, -76, -56, -2, -82, -12, -24, 86, -94, 72, 36, 86, 54, 76, -96, -94, -70, 76, 0, -48, -84, 6, -90, 44, -8, -22], [-36, 90, 20, 44, -66, -54, 54, 14, -12, 58, -10, 84, -4, 88, -70, -24, -84, -8, 58, -22, 2, -32, -28, -60, -74, -12, -10, -6, -58, -54, -8, -94, 72, 86], [-20, 88, 28, 76, 78, 52, 0, -60, 94, -22, -56, -8, 66, -36, -48, -12, 42, -84, 22, -78, 18, -68, 46, 36, 50, -80, 18, 6, 86, -18, -90, -94, 54, 60], [44, -44, -52, -24, 32, 24, -88, -62, -64, 24, -24, 76, -22, -60, 76, 12, 10, -96, -68, 98, -86, 20, -40, -30, -22, -14, -68, -68, -52, -72, -68, -36, 4, 42], [78, 74, -96, 46, -36, -14, 72, -64, -16, 26, 74, -82, 82, 96, -82, 70, -66, -90, -72, 64, -52, 46, -38, 70, 98, 26, -48, -66, -92, -86, -94, -18, 90, -58], [20, 56, -12, 82, -24, -54, 48, 22, -58, -94, -4, -78, -74, -82, 58, 2, 32, 76, 54, 76, -54, -32, 34, 56, -48, 22, 30, 86, -76, -90, 20, 2, 4, 10], [42, 98, 42, -6, 78, 92, -44, -14, 80, 14, 48, 94, 46, -30, 40, -64, 36, 66, 40, 94, 36, 94, -2, -92, 70, -44, 28, -86, 44, 98, -76, 66, -16, -24], [-64, -44, 28, -24, 92, 18, 88, -36, 72, 0, 38, 42, 46, -94, 10, -62, -64, -40, 4, 44, -42, -66, -62, 12, -72, -68, 26, 58, -64, 90, -20, -74, 46, 28], [-2, 42, 94, -52, -46, -14, -80, -74, 22, -56, 8, -88, 0, -58, 82, -12, 96, 40, -86, -30, 88, 50, 28, -40, 16, 16, -58, -18, -78, 40, 66, -6, -50, -36], [-46, -8, -76, -74, 38, -76, -2, 80, -30, -64, 64, 34, 80, -14, -4, 58, -48, 30, 56, 2, 98, -82, 82, -36, 38, 14, 24, 92, -38, 40, 6, 12, 90, 90], [-12, 24, 20, -22, -86, 4, 48, 90, -10, -90, -36, 56, -18, -72, -84, 68, -18, 48, -80, -84, 62, 4, 4, 54, -26, -28, -58, -12, -6, 32, 88, -62, 58, -52], [54, 76, 2, -98, -64, 64, 2, -22, 18, -78, -44, -78, 6, 92, -32, 14, -98, -70, -52, -20, 14, 32, 40, 32, 62, 42, 34, -52, 2, 52, 64, 12, 44, -12], [22, -48, 30, -98, -94, 36, 76, 52, 56, 76, -40, -34, -58, -70, 26, 20, -6, 92, 90, 30, 2, -34, 96, 50, 96, -82, -38, -42, 54, -80, -82, -10, -94, 64], [-46, -36, -84, 54, -64, -48, 60, 70, 78, 20, -92, -34, 88, -38, -34, 40, -70, 58, -22, -38, 46, -36, 28, -24, -16, 70, 6, -76, -30, 58, 4, 84, 92, 80], [24, 48, -54, -98, 60, 18, 70, -6, 62, -60, 80, -66, 78, -50, 36, 84, 30, 56, -56, 56, -70, 38, -70, 26, -6, -32, 86, 72, -68, 42, 30, 2, -86, 72], [-84, -98, 74, -36, 78, -10, -84, 26, 76, 38, -6, -26, 76, 26, 18, 44, -96, 92, 74, -36, 34, 64, 98, 84, 68, -56, -98, -16, 44, -84, 68, -66, 58, -4], [72, -68, 94, 76, -60, -40, -34, 78, -8, -28, 44, 88, 60, -20, 58, -46, -10, 48, -52, -38, -62, 12, 30, -96, -22, -76, -40, -20, -74, 78, 94, 78, -64, 44], [92, -76, 8, 8, 66, 70, -12, 32, 6, 28, 20, 50, 2, 78, -98, 98, 94, 82, -58, 56, 10, -94, 26, 26, -42, -66, 16, -92, 24, 72, 56, 56, 14, 46], [32, -90, -64, -14, 92, -18, -82, 36, 34, -58, -22, -8, 88, 76, 30, -68, -44, 88, 66, 74, -32, -54, -68, -18, 92, 60, -30, 82, 34, 26, -60, 82, 32, 54], [-88, 56, 76, 82, -82, 0, 74, 98, 28, 2, -26, 56, 80, 44, -10, -38, 44, -28, 88, 18, -68, 6, 90, -38, -30, -26, 56, 24, -22, 12, 78, 30, 26, -42], [84, 86, 48, -84, 88, -40, -18, 40, -70, 10, 76, 54, -82, -60, -28, -2, -74, 82, -64, 14, -84, -16, -84, 20, 16, -52, -12, 26, 82, 2, 68, 98, -84, 76], [-20, 52, -34, 56, -58, -34, 10, 30, 14, 40, -72, 84, -50, -22, -54, -14, 12, -66, -38, 4, -44, -86, -64, 60, -88, 32, -60, 74, -96, -50, -88, -14, -42, -82], [46, -72, -10, -70, -8, 60, -10, 28, -12, -82, 84, 36, -76, 72, -98, -12, -20, -92, -16, -34, 68, 98, -96, -80, 44, -72, 22, -46, 54, 54, 8, -42, -84, 76], [38, 84, 32, 70, 82, 44, 52, 48, 0, 42, -18, -80, 86, -50, -48, -48, 40, 72, -76, 16, 42, -48, -74, 64, 38, -38, -66, -70, 96, -56, 38, -68, -34, -18], [-92, 94, 84, 50, 26, 38, -16, -18, -86, -52, -12, 36, -76, 10, -92, 78, -94, 62, -48, 18, -82, -8, -74, -90, 6, 22, -90, 52, 84, 48, -98, -30, -44, 2], [32, -54, 38, -34, 90, 58, 30, 86, -52, -82, 26, -30, 22, -68, 44, 44, -54, 24, -12, 18, 62, 82, 86, 26, -78, 74, 36, 62, 50, -84, 80, -2, 44, -84], [42, -32, -36, 54, 64, 54, 88, 30, 26, 6, 98, 34, -40, 18, -50, -34, -68, -2, -94, -42, -72, 38, 22, 62, -42, -58, -88, -52, -44, 14, 14, 62, -56, -52], [-64, -44, 14, 48, -98, -48, 80, -34, 10, 46, -64, 38, 72, -80, -72, 52, 92, -22, -28, 2, 0, -70, 18, -34, 60, 36, 8, 2, -94, 80, -32, -16, -82, -72], [94, -90, 84, -34, 62, 70, -86, -20, -30, 42, -84, 20, -16, 90, -90, 20, -90, 76, 72, -12, 54, 72, 80, 30, 62, 66, -96, 14, 0, 4, -78, -40, -8, 74], [-70, 20, 74, -76, 82, -88, 88, -90, -8, -24, -30, 10, 28, -88, -72, 4, 0, -66, -82, -20, 90, -28, 48, 82, -2, 4, 38, 62, -38, 14, 56, 74, 86, 58], [-6, 52, 94, 20, 88, -56, -40, -36, 68, -24, 68, -96, 90, 28, 0, 10, -44, -94, 18, -60, 98, 24, 26, -62, -88, 50, -10, 40, 64, 24, 56, -72, 30, 8], [62, 20, 56, -38, -10, 48, 94, 38, 60, -60, -4, -56, -20, 62, 0, 0, -82, 46, 58, 4, -8, 56, 46, -82, -34, 14, -38, 48, 48, -22, 38, 64, 6, 94]],33,),
    ([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]],9,),
    ([[45, 7, 63, 28, 82, 79, 40, 94, 89, 61], [50, 94, 80, 10, 25, 12, 1, 73, 84, 38], [82, 93, 37, 59, 12, 37, 96, 12, 56, 39], [76, 56, 97, 56, 32, 33, 24, 31, 62, 94], [90, 2, 52, 81, 1, 52, 95, 93, 75, 4], [8, 47, 21, 75, 12, 90, 91, 34, 74, 73], [77, 76, 81, 68, 64, 28, 41, 84, 71, 72], [99, 93, 47, 15, 95, 76, 21, 48, 80, 39], [32, 6, 88, 96, 18, 56, 74, 93, 9, 13], [27, 8, 53, 66, 4, 74, 14, 25, 41, 78]],6,),
    ([[-90, -88, -58, -54, -26, -2, 6, 66], [-80, -78, -60, -4, -2, 58, 64, 68], [-98, -78, -22, -6, 28, 82, 86, 92], [-84, -4, 52, 64, 66, 84, 86, 98], [-62, 28, 32, 76, 92, 92, 96, 96], [-90, -54, -42, 6, 24, 42, 44, 46], [-94, -80, -36, -20, -20, -10, 24, 86], [-78, -8, 2, 48, 56, 66, 68, 78]],6,),
    ([[0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0], [1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1], [0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1], [1, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1], [1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0], [1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1], [0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0], [1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1], [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 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1]],27,),
    ([[13, 31, 35, 45, 73], [16, 47, 54, 84, 87], [8, 48, 50, 64, 81], [19, 43, 79, 88, 91], [38, 47, 53, 57, 69]],2,),
    ([[-70, -46, 18, -10, -88, -22, -68, 2, -42, 94, 64, -98, -74, -88, -60, 96, 64, 42, -26, 60, 56, 56, -92, -72, 30], [12, -34, 44, 82, 94, 88, -60, -88, -98, -82, 10, -36, 94, -64, -26, 26, -62, 94, -90, 12, -76, 30, 40, 62, -84], [-90, 98, -44, 58, 20, 84, 76, 80, 44, 98, 60, 42, -66, 2, 10, 98, 28, -38, 18, 42, 2, 34, -64, -46, 62], [-36, 50, 52, -8, -28, 52, -76, 18, 68, -16, 34, -38, -90, 68, -6, -16, -98, 12, -78, -18, -28, -38, 26, 76, 26], [-70, 14, -96, -42, 18, -18, 72, -18, -78, 90, 68, -22, 58, 98, 62, -92, -38, 86, -40, 22, 38, 86, -60, 46, -72], [-12, -64, -2, 62, 62, 16, 40, -58, 8, -16, -80, 84, -10, 10, -58, 30, -18, 36, 4, -88, -50, 30, -30, -94, -20], [28, 76, 74, 80, 38, -32, 4, 56, -52, -24, 94, 6, 12, -66, 94, -70, 98, -72, 22, 30, -8, -72, -26, 52, 98], [-36, -96, 94, -64, -68, 78, 80, -90, -68, 60, -78, -84, 34, 6, 20, 60, -86, 84, -96, 98, -38, -78, 50, 30, 22], [14, 88, 88, -34, -76, 48, 10, -14, 36, 94, 90, 90, -90, 26, 70, -64, 64, -92, 0, -60, 6, -60, 8, -44, 54], [-30, -64, -34, -26, -82, -48, -98, -50, 76, -40, -16, 52, -70, 68, 82, 86, 32, -70, 98, -80, 14, -48, -32, -84, 16], [30, -70, 36, 34, -16, -96, -62, -62, -8, 66, 68, -2, 16, -26, 32, -50, 72, -32, 72, 52, -22, -76, -4, 90, 20], [92, -72, -48, 84, -98, -80, 74, -30, 58, 6, -10, -84, -96, -60, -18, -42, 26, -96, -20, -18, -12, 2, 58, 6, 36], [-74, -44, -20, -58, 58, 24, -34, 6, 52, -40, 36, -22, -78, 82, 64, 56, -70, -2, -32, 74, 98, 38, 30, 80, -80], [58, 92, -16, 76, -28, -10, 60, -80, 96, -72, 38, -64, 8, -84, 90, 20, 64, -74, -78, -94, -68, 44, 62, 14, -74], [-2, -30, -10, -84, 66, -16, 58, 26, 42, -98, 18, 54, 22, -2, -62, 10, 14, 26, 32, -56, -84, -14, -50, -48, 52], [-94, -58, 38, -76, -46, -98, -14, 34, 8, 8, 4, 26, 48, -74, -62, 90, 54, 88, 56, 16, -36, -2, -72, -8, 84], [22, -60, -50, 50, 22, -46, -42, 38, 74, -2, -66, -94, 38, 12, 8, -84, 10, 94, 56, -16, -38, -84, 30, -90, -90], [-32, -98, 24, -80, -24, 56, -84, -50, 86, 0, 22, -26, 70, -38, -16, -52, 70, 34, 92, 24, -88, 42, 2, -70, -32], [28, -8, 52, 64, -50, -24, 24, 32, 70, -54, -34, 24, -46, 22, -42, -6, -24, 62, 44, 22, -58, -54, 16, 4, -64], [-12, 44, 4, 24, 76, -82, 86, 50, -10, -28, 44, 36, -8, 76, -2, -96, 52, 52, -48, 66, 80, 76, 26, -16, 20], [18, -50, -68, 30, -36, -4, 14, -52, -32, 0, 68, 74, 84, 4, 64, 92, 24, 12, -8, -22, -22, 14, -44, -26, 80], [82, 26, -46, -10, 62, -70, -74, 72, -14, 98, 8, -54, 30, 26, 44, 38, -22, 24, 98, 8, 56, -96, -94, -62, 48], [32, -10, -72, 66, -86, -94, -98, 4, 22, -54, -74, 22, -24, -12, -80, 98, -38, -34, -52, -74, 96, -62, 68, 24, 34], [66, -6, -38, -62, -16, 82, -78, -20, 50, 62, 96, 46, -22, 74, -84, 54, -32, -16, 62, -4, -70, -38, -6, -4, -94], [-10, 0, -30, -28, 38, -48, 80, 4, -52, -88, 42, 4, -44, -10, 56, -22, 70, -78,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1]],21,),
    ([[65, 68, 77, 53, 21, 82, 84, 4, 96, 27, 89, 71, 45, 94, 87, 29, 57, 21, 97, 82, 27, 78, 40, 31, 8, 67, 35, 75, 98, 87, 69, 30, 37, 16, 14], [71, 97, 2, 46, 5, 45, 45, 60, 15, 42, 2, 88, 29, 93, 85, 25, 22, 83, 62, 13, 62, 38, 57, 33, 33, 56, 12, 87, 93, 29, 43, 60, 65, 24, 69], [57, 35, 45, 69, 13, 32, 55, 27, 88, 3, 1, 63, 93, 45, 86, 69, 43, 85, 12, 92, 75, 15, 38, 62, 35, 16, 64, 15, 96, 64, 58, 80, 97, 40, 57], [20, 37, 32, 74, 16, 5, 20, 56, 91, 43, 60, 50, 59, 84, 13, 19, 79, 38, 27, 81, 74, 36, 5, 51, 48, 27, 59, 54, 28, 68, 71, 8, 15, 29, 73], [20, 65, 7, 34, 10, 48, 70, 25, 76, 41, 78, 11, 12, 83, 42, 92, 53, 83, 29, 45, 99, 23, 60, 80, 60, 21, 59, 40, 1, 25, 16, 33, 89, 22, 67], [67, 75, 43, 52, 63, 5, 25, 38, 53, 16, 96, 93, 70, 86, 73, 10, 55, 14, 84, 69, 71, 54, 56, 78, 57, 15, 81, 84, 16, 21, 75, 68, 25, 66, 66], [91, 95, 47, 72, 72, 5, 22, 69, 40, 48, 70, 38, 71, 18, 25, 67, 89, 21, 95, 49, 42, 80, 52, 64, 86, 93, 76, 46, 43, 63, 1, 26, 74, 25, 89], [4, 82, 60, 43, 72, 7, 17, 6, 42, 44, 21, 2, 13, 32, 77, 29, 5, 90, 96, 82, 17, 84, 15, 60, 79, 68, 73, 44, 33, 10, 47, 1, 40, 73, 22], [26, 35, 33, 10, 61, 38, 19, 68, 83, 7, 12, 91, 32, 27, 57, 85, 54, 69, 83, 7, 78, 73, 37, 50, 9, 5, 54, 48, 9, 52, 30, 78, 60, 3, 52], [24, 28, 39, 55, 75, 81, 82, 81, 25, 14, 85, 11, 47, 27, 4, 51, 34, 40, 71, 18, 19, 82, 15, 75, 12, 35, 36, 12, 16, 92, 44, 44, 36, 59, 30], [16, 80, 84, 9, 46, 5, 95, 18, 44, 86, 39, 66, 58, 67, 47, 92, 75, 74, 84, 95, 53, 51, 45, 48, 22, 82, 12, 79, 55, 98, 45, 92, 63, 64, 44], [15, 99, 17, 75, 61, 26, 29, 89, 4, 27, 42, 86, 24, 19, 41, 91, 83, 13, 95, 66, 91, 64, 72, 12, 29, 29, 86, 30, 73, 69, 13, 2, 33, 4, 56], [74, 57, 97, 2, 63, 12, 16, 60, 99, 56, 73, 3, 92, 52, 16, 83, 75, 46, 31, 1, 55, 30, 85, 79, 16, 68, 88, 40, 87, 17, 99, 26, 35, 79, 15], [27, 72, 15, 72, 4, 65, 25, 99, 8, 49, 17, 28, 70, 6, 55, 1, 67, 52, 73, 79, 40, 84, 16, 74, 78, 16, 15, 41, 90, 10, 60, 12, 37, 14, 25], [94, 53, 30, 59, 63, 99, 79, 95, 18, 71, 67, 5, 89, 16, 79, 84, 41, 60, 86, 35, 27, 12, 33, 24, 26, 98, 13, 92, 20, 72, 50, 80, 34, 96, 30], [99, 16, 48, 9, 54, 31, 19, 34, 62, 80, 88, 16, 79, 31, 52, 56, 71, 44, 15, 66, 86, 24, 89, 61, 12, 14, 34, 20, 63, 78, 82, 35, 63, 81, 48], [45, 87, 86, 49, 31, 29, 25, 96, 95, 6, 37, 17, 31, 58, 21, 2, 7, 91, 22, 4, 91, 45, 96, 85, 99, 73, 92, 10, 87, 24, 57, 4, 81, 48, 88], [58, 1, 66, 40, 48, 53, 6, 14, 62, 36, 21, 25, 54, 72, 27, 78, 4, 8, 91, 83, 94, 92, 91, 61, 37, 44, 3, 49, 28, 83, 91, 87, 83, 57, 13], [94, 41, 72, 29, 43, 50, 50, 47, 70, 56, 17, 29, 56, 52, 48, 2, 33, 59, 39, 55, 35, 31, 76, 31, 26, 96, 49, 60, 50, 60, 3, 20, 56, 47, 2], [63, 77, 93, 63, 51, 70, 42, 8, 26, 54, 74, 38, 56, 65, 66, 43, 64, 35, 65, 68, 3, 88, 55, 81, 27, 25, 59, 84, 39, 54, 51, 30, 70, 71, 27], [5, 26, 36, 11, 56, 23, 3, 79, 58, 44, 89, 80, 96, 26, 69, 10, 75, 97, 92, 57, 80, 44, 2, 29, 2, 86, 75, 35, 96, 64, 5, 91, 51, 76, 8], [3, 96, 22, 63, 28, 90, 45, 21, 75, 27, 7, 73, 47, 48, 98, 43, 26, 70, 76, 37, 50, 44, 1, 35, 68, 40, 50, 72, 66, 12, 72, 41, 60, 31, 85], [95, 32, 20, 83, 47, 94, 73, 84, 18, 77, 60, 30, 29, 52, 51, 30, 69, 68, 50, 59, 31, 42, 33, 65, 19, 15, 66, 68, 3, 87, 60, 43, 53, 70, 94], [23, 49, 15, 47, 81, 9, 66, 50, 53, 93, 42, 46, 95, 96, 58, 1, 94, 92, 90, 82, 1, 41, 48, 83, 99, 33, 72, 91, 42, 8, 58, 96, 83, 30, 60], [10, 64, 36, 16, 3, 86, 86, 85, 94, 27, 66, 72, 43, 23, 39, 38, 36, 14, 95, 57, 47, 51, 19, 30, 16, 76, 64, 60, 88, 42, 38, 61, 96, 50, 19], [40, 47, 62, 69, 46, 63, 47, 2, 51, 96, 91, 2, 37, 37, 57, 22, 98, 64, 91, 81, 39, 87, 74, 22, 15, 61, 60, 50, 61, 62, 40, 36, 39, 16, 56], [28, 35, 32, 52, 47, 88, 63, 21, 83, 32, 34, 52, 82, 11, 75, 82, 1, 40, 1, 24, 41, 86, 71, 81, 49, 12, 65, 67, 94, 87, 59, 72, 17, 6, 60], [56, 12, 21, 75, 66, 20, 64, 20, 95, 36, 62, 24, 86, 9, 58, 49, 81, 98, 53, 11, 6, 59, 51, 49, 87, 47, 45, 49, 40, 90, 9, 8, 49, 52, 26], [12, 97, 64, 71, 80, 26, 89, 35, 93, 50, 92, 16, 83, 40, 6, 91, 67, 98, 17, 32, 24, 99, 35, 96, 53, 15, 37, 25, 85, 78, 23, 55, 7, 5, 78], [83, 71, 72, 68, 6, 10, 50, 14, 13, 71, 21, 97, 11, 6, 36, 75, 55, 34, 94, 73, 71, 46, 37, 60, 18, 49, 93, 85, 14, 16, 26, 95, 51, 75, 96], [90, 63, 33, 60, 37, 11, 20, 77, 34, 60, 97, 58, 43, 68, 54, 72, 60, 11, 66, 22, 4, 42, 89, 52, 44, 15, 76, 97, 32, 70, 1, 20, 69, 37, 51], [2, 78, 17, 50, 82, 17, 31, 56, 31, 36, 19, 61, 32, 81, 88, 4, 69, 47, 41, 1, 90, 42, 67, 23, 13, 86, 95, 61, 72, 30, 46, 76, 86, 43, 15], [30, 60, 24, 25, 53, 58, 2, 65, 84, 45, 44, 26, 8, 83, 31, 79, 52, 2, 66, 50, 93, 97, 10, 46, 58, 85, 85, 13, 51, 80, 83, 88, 58, 62, 23], [4, 31, 8, 25, 54, 87, 11, 92, 45, 87, 45, 60, 64, 43, 64, 47, 61, 98, 48, 75, 8, 34, 8, 52, 81, 86, 8, 62, 65, 14, 69, 91, 48, 87, 12], [64, 30, 8, 66, 69, 77, 81, 35, 79, 12, 99, 67, 10, 2, 15, 63, 7, 20, 60, 8, 90, 58, 8, 30, 84, 54, 54, 95, 29, 53, 94, 31, 4, 29, 44]],28,)
        ]
    n_success = 0
    for i, parameters_set in enumerate(param):
        if f_filled(*parameters_set) == f_gold(*parameters_set):
            n_success+=1
    print("#Results: %i, %i" % (n_success, len(param)))